package com.exmaple.cdc.wrap;

import com.github.shyiko.mysql.binlog.event.EventData;

public class BinlogObj {

    //表名
    private String tableName;

    //操作类型
    private String type;

    //原始数据
    private EventData eventData;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public EventData getEventData() {
        return eventData;
    }

    public void setEventData(EventData eventData) {
        this.eventData = eventData;
    }

    public BinlogObj(String tableName, String type, EventData eventData) {
        this.tableName = tableName;
        this.type = type;
        this.eventData = eventData;
    }

    @Override
    public String toString() {
        return "BinlogObj{" +
                "tableName='" + tableName + '\'' +
                ", type='" + type + '\'' +
                ", eventData=" + eventData +
                '}';
    }
}
